/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.teach.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.teach.entity.TeachDistribute;
import com.lczyfz.istep.modules.teach.entity.TeachDistributeStudent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 下发学生中间表DAO接口
 * @author cqh
 * @version 2017-03-21
 */
@MyBatisDao
public interface TeachDistributeStudentDao extends CrudDao<TeachDistributeStudent> {

    //根据DistributeId获取多条记录
    List<TeachDistributeStudent> findListByDistributeId(TeachDistributeStudent teachDistributeStudent);

    //根据DistributeId获取多条记录-该次下发的所有学生id（去重后）
    List<String> findStudentListByDistributeId(TeachDistributeStudent teachDistributeStudent);

    //删除下发和学生关联表数据-真删除
    void deleteDistributeStudent(@Param("distributeId")String distributeId);

}